﻿<LazyLoadingContainer:LazyLoadingContainer x:Class="ZOIL.Library.Components.LazyLoadingContainer.FileSystemContainer"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:zoil="http://zoil.codeplex.com/schemas/2012"
                            xmlns:LazyLoadingContainer="clr-namespace:ZOIL.Library.Components.LazyLoadingContainer"
                            Width="500"
                            Height="500"
                            TitleTemplate="{DynamicResource titleTemplate}"
                            DynamicTemplate="{DynamicResource dynamicTemplate}">
    <LazyLoadingContainer:LazyLoadingContainer.Resources>
        <DataTemplate x:Key="SubfolderTemplate">
            <!--<TextBlock Background="Blue" Width="10" Height="10" Margin="5" Text="{Binding}"/>-->
            <Viewbox Width="50" Height="50">
                <LazyLoadingContainer:FileSystemContainer zoil:ZInformationLandscape.ZoomTarget="True" Folder="{Binding Converter={zoil:DummyConverter}}"/>
            </Viewbox>
        </DataTemplate>
        <ItemsPanelTemplate x:Key="PanelTemplate">
            <WrapPanel IsItemsHost="true"/>
        </ItemsPanelTemplate>
        <ControlTemplate x:Key="titleTemplate">
            <Canvas Background="Red">
                <TextBlock FontSize="18"  Text="{Binding FolderName}"/>
            </Canvas>
        </ControlTemplate>
        <ControlTemplate x:Key="dynamicTemplate">
            <ItemsControl ItemsPanel="{StaticResource PanelTemplate}" ItemsSource="{Binding Subfolder}" ItemTemplate="{StaticResource SubfolderTemplate}"/>
        </ControlTemplate>
    </LazyLoadingContainer:LazyLoadingContainer.Resources>
    <Grid>
    </Grid>
</LazyLoadingContainer:LazyLoadingContainer>
